home *** CD-ROM | disk | FTP | other *** search
/ Nautilus 1992 July / Nautilus-3-8 / Nautilus-3-8.bin / Tools & Utilities / Techy Stuff / Doco ƒ / CSMP ƒ / CSMP-V1-085.TXT < prev    next >
Encoding:
Text File  |  1992-06-30  |  51.8 KB  |  1,455 lines

  1. C.S.M.P. Digest             Mon, 18 May 92       Volume 1 : Issue 85
  2.  
  3. Today's Topics:
  4.  
  5.     Garbage in my GWorld's - help!
  6.     Password specification for AppleEvents?
  7.     Mac SCSI Disk Spin-up
  8.     Is ALIGN broken in MPW assembler?
  9.     IM IV Sound Mgr error fix...where?
  10.     Specifying -model for MPW C++
  11.     diskInserted events
  12.     THINK C 5.0.2 questions on syntax
  13.     How to guarantee the colors I want when my app runs?
  14.     ThinkPascal
  15.     Zortech C++
  16.  
  17.  
  18. The Comp.Sys.Mac.Programmer Digest is moderated by Michael A. Kelly.
  19.  
  20. These digests are available (by using FTP, account anonymous, your email
  21. address as password) in the pub/mac/csmp-digest directory on ftp.cs.uoregon.
  22. edu.  This is also the home of the comp.sys.mac.programmer Frequently Asked
  23. Questions list.  The last several issues of the digest are available from
  24. sumex-aim.stanford.edu as well.
  25.  
  26. These digests are also available via email.  Just send a note saying that you
  27. want to be on the digest mailing list to mkelly@cs.uoregon.edu, and you will
  28. automatically receive each new digest as it is created.
  29.  
  30. The digest is a collection of articles from the internet newsgroup comp.sys.
  31. mac.programmer.  It is designed for people who read c.s.m.p. semi-regularly
  32. and want an archive of the discussions.  If you don't know what a newsgroup
  33. is, you probably don't have access to it.  Ask your systems administrator(s)
  34. for details.  (This means you can't post questions to the digest.)
  35.  
  36. The articles in these digests are taken directly from comp.sys.mac.programmer.
  37. They are not edited; all articles included in this digest are in their original
  38. posted form.  The only articles that are -not- included in these digests are
  39. those which didn't receive any replies (except those that give information
  40. rather than ask a question).  All replies to each article are concatenated
  41. onto the original article in the order in which they were received.  Article
  42. threads are not added to the digests until the last article added to the
  43. thread is at least one month old (this is to ensure that the thread is dead
  44. before adding it to the digests).
  45.  
  46. Send administrative mail to mkelly@cs.uoregon.edu.
  47.  
  48. -------------------------------------------------------
  49.  
  50. From: krk@itl.itd.umich.edu (Kenneth Knight)
  51. Subject: Garbage in my GWorld's - help!
  52. Date: 9 Apr 92 09:04:15 GMT
  53. Organization: Instructional Technology Laboratory, University of Michigan
  54.  
  55. I am designing a program that does some fairly advanced graphics for work. The
  56. program is meant to provide an interactive means towards image compression
  57. (display both before and after images and let the user modify them). The image
  58. data are stored in Graphics World's (GWorld's). There are three main GWorlds:
  59. the before image, the after image (compressed before image), and a buffer for
  60. the Undo command (a fourth is created sometimes for things like psating). My
  61. problem is that it appears that garbage is being stored in the second (and
  62. probably thrid and fourth) GWorld's that I create. For example, the before
  63. image seems to draw to the left side of the main window perfectly , but the
  64. after image is crud (it should , on startup, be a large white rectangle since
  65. the before image has not been compressed). Right now the GWorld's are declared
  66. globally like this:
  67.      GWorldPtr   gAfterWorld, gBeforeWorld, gUndoWorld, gPasteWorld; /* with
  68. proper extern GWorldPtr statements in the other files that use these
  69. variables. */
  70.  
  71. If I create the GWorlds in the order: gBeforeWorld, gAfterWorld, gUndoWorld I
  72. immediately see garbage in the second GWorld. If, however, I create the
  73. GWorlds in the same order as they are declared the garbage in the second world
  74. is less visible (though I believe still there , also I think garbage might be
  75. in the first world, too). The three main GWorlds are all the same size (the
  76. picture frame rectangle that is being displayed) and of the same depth (8 or
  77. 32 bits per pixel). This problem appears no matter what I pass to my creation
  78. routine (essentially a call to NewGWorld with the proper parameteres set).
  79.  
  80. As far as I can tell the problem is NOT with any of my drawing routines, but
  81. with the GWorld's themselves (NewGWorld appears to be working fine, no error
  82. is returned and the partition I've given the application in tests is far
  83. greater than it needs to be). Specifically, the portPixMap base address of,
  84. say gAfterWorld in the first example, is either just slightly before or after
  85. the portPixMap base address of gBeforeWorld. The result is a mangled image
  86. appearing on the right side of the display (i.e. the pixel maps of gAfterWorld
  87. and gBeforeWorld are overlapping).
  88.  
  89. What am I doing incorrectly? Can anyone suggest things to check (the params
  90. passed to the creation routine and then NewGWorld are coorect, the GWorld
  91. structures that are returned - with the exception of the portPixMap^^.baseAddr
  92. - - seem valid (e.g. proper rects, regions, rowBytes), and the drawing routines
  93. are drawing with the right rects (the CopyBits call has the proper params and
  94. I am quite sure that no colorizing errors are taking place - I insure that the
  95. foreground color is black and the background color white before calling
  96. CopyBits))?
  97.  
  98. Thanks in advance....
  99.  
  100.    ** Ken Knight **
  101. krk@itl.itd.umich.edu
  102.  
  103. +++++++++++++++++++++++++++
  104.  
  105. From: mxmora@unix.SRI.COM (Matt Mora)
  106. Date: 9 Apr 92 19:38:21 GMT
  107. Organization: SRI International, Menlo Park, California
  108.  
  109. Are you erasing your gworlds before you are using them?
  110.  
  111. Matt
  112.  
  113.  
  114. - -- 
  115. ___________________________________________________________
  116. Matthew Mora                |   my Mac  Matt_Mora@sri.com
  117. SRI International           |  my unix  mxmora@unix.sri.com
  118. ___________________________________________________________
  119.  
  120. +++++++++++++++++++++++++++
  121.  
  122. From: orpheus@reed.edu (P. Hawthorne)
  123. Date: 10 Apr 92 11:39:24 GMT
  124. Organization: Reed College, Portland OR
  125.  
  126.  
  127.   krk@itl.itd.umich.edu (Kenneth Knight) writes:
  128. . My problem is that it appears that garbage is being stored in the second
  129. .(and probably third and fourth) GWorlds that I create.
  130. . Specifically, the portPixMap base address of, say gAfterWorld in the
  131. . first example, is either just slightly before or after the portPixMap
  132. . base address of gBeforeWorld. 
  133.  
  134.     Gee, this sounds a lot like the snow I find in my gWorlds after a
  135. suspend or resume event, particularly involving the desk accessory
  136. layer where the refCons of windows change fast and furious.
  137.     Judging from how drastically different 32-Bit QuickDraw runs on
  138. System 7 as opposed to 6.0.7, well... Are you using System 7?
  139.     I suspect that you may not be dereferencing the pixMap handle in just
  140. the right way. And then, it could be entirely natural for that to happen.
  141. Ours is not to wonder why... ours is just to code and sigh.
  142.     Look at it another way: Are you locking the gWorld while drawing?
  143. Are you enlocking them across event polling?
  144.     If all else fails, take a look at what it is you are trying to draw
  145. and bitblit in the first place.
  146.  
  147.     Theus (orpheus@reed.edu)
  148.  
  149. +++++++++++++++++++++++++++
  150.  
  151. From: roy@adeptsln.cts.com
  152. Date: 10 Apr 92 19:34:52 GMT
  153. Organization: Adept Solutions
  154.  
  155. In article <1992Apr9.090415.13379@terminator.cc.umich.edu>  
  156. krk@itl.itd.umich.edu (Kenneth Knight) writes:
  157. > I am designing a program that does some fairly advanced graphics for work.  
  158. The
  159. > program is meant to provide an interactive means towards image compression
  160. > (display both before and after images and let the user modify them). The  
  161. image
  162. > data are stored in Graphics World's (GWorld's). 
  163.  
  164. << Much stuff deleted>>
  165.  
  166. Are you sure you are using SetGWorld & GetGWorld, and NOT SetPort & GetPort..  
  167. (Even though GWorlds are typed as CGrafPtr's + stuff, you have to use the  
  168. proper routines.)
  169. This bit me a few years ago, (left a nasty scar :), but the reason that I  
  170. remember about it to this day was that it ALMOST worked, but there was SOME  
  171. GARBAGE!!! And it too seemed rather random..
  172.  
  173. Also, LockPixels is a big must, too!
  174. - -- 
  175. Roy Lovejoy      | internet:  roy@adeptsln.cts.com
  176. Head RGB Guy     | AppleLink: adept
  177. Adept Solutions  | CIS:       72447,1447
  178. .................| dual certified developer: NeXT & Apple ;)
  179.  
  180. +++++++++++++++++++++++++++
  181.  
  182. From: roy@adeptsln.cts.com
  183. Date: 16 Apr 92 07:47:15 GMT
  184. Organization: Adept Solutions
  185.  
  186. In article <1992Apr10.113924.19280@reed.edu> orpheus@reed.edu (P. Hawthorne)  
  187. writes:
  188. >   krk@itl.itd.umich.edu (Kenneth Knight) writes:
  189. > . My problem is that it appears that garbage is being stored in the second
  190. > .(and probably third and fourth) GWorlds that I create.
  191. > . Specifically, the portPixMap base address of, say gAfterWorld in the
  192. > . first example, is either just slightly before or after the portPixMap
  193. > . base address of gBeforeWorld. 
  194. > << Other illuminations deleted>>
  195. >     Theus (orpheus@reed.edu)
  196.  
  197. Another thought is that there is a bug in 6.0.7 that was fixed in 7.0, that  
  198. being that if you resize/offset a GWorld under 7.0, the clipRgn & visRgn get  
  199. resized/offseted along with it. Under 6.0.7 one of them (I forget which), does  
  200. not.  Big headache!
  201.  
  202. Cheers.
  203. - -- 
  204. Roy Lovejoy      | internet:  roy@adeptsln.cts.com
  205. Head RGB Guy     | AppleLink: adept
  206. Adept Solutions  | CIS:       72447,1447
  207. .................| dual certified developer: NeXT & Apple ;)
  208.  
  209. ---------------------------
  210.  
  211. From: time@ice.com (Tim Endres)
  212. Subject: Password specification for AppleEvents?
  213. Date: 13 Apr 92 16:07:33 GMT
  214. Organization: ICE Engineering, Inc.
  215.  
  216.  
  217. When I send an Apple Event, the first execution puts up the password
  218. prompt dialog box. This is fucked for background execution. How do
  219. I send an Apple Event and specify the password to avoid this dialog?
  220.  
  221.  
  222. tim endres - time@ice.com  -or-  uupsi!tbomb!time
  223. ICE Engineering, Inc. - Phone (313) 449 8288 - FAX (313) 449-9208
  224. 8840 Main Street, Whitmore Lake, MI  48189
  225. USENET - a slow moving self parody... ph
  226.  
  227. +++++++++++++++++++++++++++
  228.  
  229. From: d88-jwa@byse.nada.kth.se (Jon W{tte)
  230. Date: 13 Apr 92 19:37:17 GMT
  231. Organization: Royal Institute of Technology, Stockholm, Sweden
  232.  
  233. .com> time@ice.com (Tim Endres) writes:
  234.  
  235.    When I send an Apple Event, the first execution puts up the password
  236.    prompt dialog box. This is fucked for background execution. How do
  237.    I send an Apple Event and specify the password to avoid this dialog?
  238.  
  239.  
  240. The f-word is exactly how I feel...
  241.  
  242. This has been beaten to death before. The short answer is that
  243. THERE IS NO WAY; some people at Apple feel this is bad, and should
  244. be fixed; until it is, ...
  245.  
  246. The long answer is you can allow guest access, and use the
  247. neat hack called "AutoGuest INIT."
  248.  
  249. - -- 
  250. "You should meet yourself someday. I'm sure you would hate it."
  251. - - Me: h+@nada.kth.se; Jon W{tte (The Diplomat - NOT!)
  252.  
  253. +++++++++++++++++++++++++++
  254.  
  255. From: jmatthews@desire.wright.edu
  256. Date: 15 Apr 92 05:10:11 GMT
  257. Organization: Wright State University
  258.  
  259. In article <D88-JWA.92Apr13203717@byse.nada.kth.se>, d88-jwa@byse.nada.kth.se (Jon W{tte) writes:
  260. > .com> time@ice.com (Tim Endres) writes:
  261. >    When I send an Apple Event, the first execution puts up the password
  262. >    prompt dialog box. This is fucked for background execution. How do
  263. >    I send an Apple Event and specify the password to avoid this dialog?
  264. > The f-word is exactly how I feel...
  265. > This has been beaten to death before. The short answer is that
  266. > THERE IS NO WAY; some people at Apple feel this is bad, and should
  267. > be fixed; until it is, ...
  268. > The long answer is you can allow guest access, and use the
  269. > neat hack called "AutoGuest INIT."
  270.  
  271. Another alternative (in certain situations) is to use the PPC toolbox
  272. directly. PPCStart skips the authentication step of StartSecureSession.
  273. PPC also gets around the 64K limit. Of course if you need AppleEvents,
  274. you need AppleEvents...
  275.  
  276. o----------------------------------------------------------------------------o
  277. | John B. Matthews, jmatthews@desire.wright.edu, disclaimer:= myViews <> WSU |
  278. | "I'm a commensal .sig virus, indistinguishable from an ordinary organelle."|
  279. o----------------------------------------------------------------------------o
  280.  
  281. +++++++++++++++++++++++++++
  282.  
  283. From: jpugh@apple.com (Jon Pugh)
  284. Date: 16 Apr 92 20:09:37 GMT
  285. Organization: Apple Co.
  286.  
  287. In article <1CE00001.0u6vl2@tbomb.ice.com>, time@ice.com (Tim Endres) writes:
  288. > When I send an Apple Event, the first execution puts up the password
  289. > prompt dialog box. This is fucked for background execution. How do
  290. > I send an Apple Event and specify the password to avoid this dialog?
  291.  
  292. You patch a mess of shit and/or burrow under the AE manager.  Greg Anderson
  293. already did this in his AutoGuest INIT & library.  It is available on the
  294. Developer CD.  It only allows Guest access this way though.  Anything 
  295. requiring a password is still out of bounds for a bg only app.  I think we
  296. need a programmatic way of providing the user name and password, but it 
  297. doesn't exist.
  298.  
  299. In short, we know it's fucked.  We're trying to get it fixed.
  300.  
  301. Jon
  302.  
  303. My opinion.  My language.  My ass...
  304.  
  305. +++++++++++++++++++++++++++
  306.  
  307. From: greggor@Apple.COM (Greg L. Anderson)
  308. Date: 16 Apr 92 23:03:49 GMT
  309. Organization: Apple Computer Inc., Cupertino, CA
  310.  
  311. In article <23432@goofy.Apple.COM> jpugh@apple.com (Jon Pugh) writes:
  312. >You patch a mess of shit and/or burrow under the AE manager.  Greg Anderson
  313. >already did this in his AutoGuest INIT & library.  It is available on the
  314. >Developer CD.  It only allows Guest access this way though.
  315.  
  316. For the record, there were quite a few people who worked on overcoming this
  317. problem; I just rolled it all together.  AutoGuest should be avoided when
  318. possible, though; it's not guarenteed to work with future versions of
  319. the system.
  320.  
  321. >Anything 
  322. >requiring a password is still out of bounds for a bg only app.  I think we
  323. >need a programmatic way of providing the user name and password, but it 
  324. >doesn't exist.
  325. >
  326. >In short, we know it's fucked.  We're trying to get it fixed.
  327.  
  328. Amen...
  329. - -- 
  330. =====================   ===========================   =====================
  331. Greg Anderson           Apple Computer, Inc.            O    Ponnuki    O
  332. Macintosh Bodhisattva   Macintosh System Software      O O  is  ideal  O O
  333. greggor@apple.com       Finder Team                     O     shape     O
  334. =====================   ===========================   =====================
  335.  
  336. ---------------------------
  337.  
  338. From: trevor@celece.ucsd.edu (Trevor Henthorn)
  339. Subject: Mac SCSI Disk Spin-up
  340. Date: 16 Apr 92 19:34:40 GMT
  341.  
  342. I have a SCSI disk here which requires a SCSI spin-up (or restart)
  343. command before it will spin up. 
  344.  
  345. Most computers other than the Mac send that spin-up command when they boot. 
  346.  
  347. Does anyone know of any drivers or utilities for the Mac that send
  348. that spin-up command? I have seen spin-down utilities.
  349.  
  350.  
  351. Thanks,
  352.  
  353. Trevor Henthorn
  354.  
  355. please e-mail
  356.  
  357. trevor@ece.ucsd.edu
  358.  
  359. +++++++++++++++++++++++++++
  360.  
  361. From: kessler@decwet.enet.dec.com (Gary Kessler)
  362. Organization: Digital Equipment Corporation
  363. Date: 16 APR 92 14:20:44    
  364.  
  365.  
  366. In article <1622@deadmin.ucsd.edu>, trevor@celece.ucsd.edu (Trevor Henthorn) writes...
  367. >I have a SCSI disk here which requires a SCSI spin-up (or restart)
  368. >command before it will spin up. 
  369. >Most computers other than the Mac send that spin-up command when they boot. 
  370. >Does anyone know of any drivers or utilities for the Mac that send
  371. >that spin-up command? I have seen spin-down utilities.
  372. >Thanks,
  373. >Trevor Henthorn
  374. >please e-mail
  375. >trevor@ece.ucsd.edu
  376. What kind of disk is it??  There are a couple of "freeware" SCSI init's the
  377. send spin-up commands to the disks or you might be able to modify the mode page
  378. to set the spin-up on power-up bit.  All depends on the drive.
  379.  
  380. Gary Kessler
  381.  
  382.  
  383. ---------------------------
  384.  
  385. From: huntley@garbo.cs.indiana.edu (Haydn Huntley)
  386. Subject: Is ALIGN broken in MPW assembler?
  387. Date: 15 Apr 92 14:25:56 GMT
  388. Organization: Indiana University, Bloomington
  389.  
  390.  
  391. I'm porting a program from Unix to the Mac, and part of it is written
  392. in assembler.  In the assembler, there are statements like "ALIGN 8",
  393. to align the function entry points on 8 byte boundaries.  The MPW
  394. assembler has an align directive, and the files assemble just fine.
  395. However, when the code is run, those entry points are only aligned on
  396. 2 byte boundaries!
  397.  
  398. Does anyone know why this is broken or have any ideas on how to fix
  399. it?
  400.  
  401. BTW, I'm using MPW 3.0 on a Mac IIcx, and in another week version 3.2
  402. should get here.
  403.  
  404. Thanks in Advance,
  405.  
  406. - --Haydn
  407. - -- 
  408. ;;  *****************************************************
  409. ;;  *  Haydn Huntley    huntley@copper.ucs.indiana.edu  *
  410. ;;  *****************************************************
  411.  
  412. +++++++++++++++++++++++++++
  413.  
  414. From: dougm@cns.caltech.edu (Doug McNought)
  415. Date: 15 Apr 92 17:43:26 GMT
  416. Organization: California Institute of Technology
  417.  
  418. In article <1992Apr15.092634.13148@news.cs.indiana.edu> huntley@garbo.cs.indiana.edu (Haydn Huntley) writes:
  419.  
  420.    I'm porting a program from Unix to the Mac, and part of it is written
  421.    in assembler.  In the assembler, there are statements like "ALIGN 8",
  422.    to align the function entry points on 8 byte boundaries.  The MPW
  423.    assembler has an align directive, and the files assemble just fine.
  424.    However, when the code is run, those entry points are only aligned on
  425.    2 byte boundaries!
  426.  
  427. I don't use MPW, but my suspicion is that it's related to the original 68000
  428. alignment properties. Since the 68K has a 16-bit bus, word alignment is the 
  429. only kind of alignmant that exists. On the later chips, you can use any 
  430. you want, but 32-bit accesses do best when longword-aligned. The system
  431. software is restriced by the original architecture--many structs used by
  432. the system are only word-aligned, so C structs which on a unix box would
  433. be longword aligned for efficiency are constrained to only word alignment.
  434. Your problems with the MPW assembler may be related to this--sorry I'm not
  435. better informed on the particulars.
  436. regards,
  437. doug
  438. - --
  439. <><><><><><><><><><><><><><><>Go Orioles<><><><><><><><><><><><><><><><>
  440. <> Doug McNaught                          dougm@descartes.caltech.edu <>
  441. <>  Help!!! I'm addicted to *Spaceward Ho!* Is there a support group? <>
  442. <><><><><><><><><><><><><><><>Go Orioles<><><><><><><><><><><><><><><><>
  443.  
  444. +++++++++++++++++++++++++++
  445.  
  446. From: ira@Apple.COM (Ira Ruben)
  447. Date: 16 Apr 92 20:19:22 GMT
  448. Organization: Apple Computer Inc., Cupertino, CA
  449.  
  450. huntley@garbo.cs.indiana.edu (Haydn Huntley) writes:
  451.  
  452.  
  453. >I'm porting a program from Unix to the Mac, and part of it is written
  454. >in assembler.  In the assembler, there are statements like "ALIGN 8",
  455. >to align the function entry points on 8 byte boundaries.  The MPW
  456. >assembler has an align directive, and the files assemble just fine.
  457. >However, when the code is run, those entry points are only aligned on
  458. >2 byte boundaries!
  459.  
  460. >Does anyone know why this is broken or have any ideas on how to fix
  461. >it?
  462.  
  463. The following is the output from MPW Asm for a little test program I
  464. wrote:
  465.  
  466. 00000                                 proc
  467. 00000   01                            dc.b    1
  468. 00001   0000 0008                     align   8
  469. 00008   0002                          dc.w    2
  470. 0000A                                 end
  471.  
  472. According to the addresses on the left the align did indeed align to
  473. the desired boundary.  Check your asm listing.
  474.  
  475. Ira Ruben
  476. Apple Computer, Inc.
  477.  
  478.  
  479. ---------------------------
  480.  
  481. From: howard@rigel.cs.pdx.edu (howard l. berkey)
  482. Subject: IM IV Sound Mgr error fix...where?
  483. Date: 15 Apr 92 16:30:55 GMT
  484. Organization: The Orbital Mind Control Lasers
  485.  
  486.  
  487. Hi all!
  488.     I understand that the chapter on the Sound manager in IM IV (four,
  489. not six) is somewhat, ah, misinformative and I was wondering if the correct
  490. info is available on an FTP site... I looked on sumex but didn't see it.  Also
  491. I was wondering if Apple/Addison-Wesley/apda or some philanthropist was going
  492. to produce an edition of IM IV with the correct information.
  493. Thanks!
  494.     -Howard
  495.  
  496.  
  497.  
  498.  
  499. - -------------------------------------------------------------------------
  500. You can't stop him, he's too insane!
  501.                     Some have to dance, Some have to kill
  502. Howard Berkey, permanent undergrad                howard@rigel.cs.pdx.edu
  503.  
  504. +++++++++++++++++++++++++++
  505.  
  506. From: potts@itl.itd.umich.edu (Paul Potts)
  507. Organization: Instructional Technology Laboratory, University of Michigan
  508. Date: Thu, 16 Apr 92 18:21:33 GMT
  509.  
  510. In article <5340@pdxgate.UUCP> howard@rigel.cs.pdx.edu (howard l. berkey) writes:
  511. >
  512. >Hi all!
  513. >    I understand that the chapter on the Sound manager in IM IV (four,
  514. >not six) is somewhat, ah, misinformative and I was wondering if the correct
  515. >info is available on an FTP site... I looked on sumex but didn't see it.  Also
  516. >I was wondering if Apple/Addison-Wesley/apda or some philanthropist was going
  517. >to produce an edition of IM IV with the correct information.
  518.  
  519. IM-6 (VI, six : > ) is much improved, although still a little hard to follow
  520. as far as organization goes. Beyond that there is the draft chapter for a
  521. revised Inside Macintosh that is available on ETO disks and (maybe) on 
  522. Develop or the Developer's CDs.
  523.  
  524. I've been able to get along quite well with IM-6.
  525. - -- 
  526. Paul Potts - potts@itl.itd.umich.edu
  527. Un damne' descendant sans lampe,/ Au bord d'un gouffre dont l'odeur
  528. Trahit l'humide profondeur,/ D'e'ternels escaliers sans rampe... 
  529.    -Baudelaire on DOS/Windows programming   
  530.  
  531. ---------------------------
  532.  
  533. From: nagle@netcom.com (John Nagle)
  534. Subject: Specifying -model for MPW C++
  535. Date: 14 Apr 92 17:13:27 GMT
  536. Organization: Netcom - Online Communication Services  (408 241-9760 guest)
  537.  
  538.  
  539.      The MPW C and C++ compilers don't seem to be updated together as of
  540. MPW 3.2.  C will accept "-model farData" and "-bigseg", but C++ doesn't
  541. understand these yet.  "-m" seems to allow big objects, but linker
  542. warnings about segments > 32K still appear.  What's the right way to
  543. use large objects in MPW C++?
  544.  
  545.                     John Nagle
  546.  
  547. +++++++++++++++++++++++++++
  548.  
  549. From: ksand@apple.com (Kent Sandvik)
  550. Date: 17 Apr 92 00:41:24 GMT
  551. Organization: MacDTS Mongols
  552.  
  553. In article <6!yj9vh.nagle@netcom.com>, nagle@netcom.com (John Nagle) writes:
  554. >      The MPW C and C++ compilers don't seem to be updated together as of
  555. > MPW 3.2.  C will accept "-model farData" and "-bigseg", but C++ doesn't
  556. > understand these yet.  "-m" seems to allow big objects, but linker
  557. > warnings about segments > 32K still appear.  What's the right way to
  558. > use large objects in MPW C++?
  559.  
  560. >From the MPW 3.2 C++ release notes, ETO#7:
  561.  
  562.     A new option: -model far turns on 32-bit data and code references. By 
  563. default, (Rmodel nearS) these references are A5-relative. -model far allows
  564.  a larger address space than the traditional Macintosh model.
  565.     If you do not have any classes derived from PascalObject, all MPW C++ 
  566. does with -model far is to pass it along to the C compiler, and the
  567. C compiler generates all the 32-bit references.
  568.  
  569. We didn't implement -model FarData/-model FarCode yet, it might happen
  570. in future.
  571.  
  572. Cheers,
  573. Kent
  574.  
  575. ---------------------------
  576.  
  577. From: CXT105@psuvm.psu.edu (Christopher Tate)
  578. Subject: diskInserted events
  579. Date: 14 Apr 92 18:27:24 GMT
  580. Organization: Penn State University
  581.  
  582. In article <22885@goofy.Apple.COM>, REEKES@applelink.apple.com (Jim Reekes)
  583. says:
  584. >
  585. >All applications should be checking for diskInserted events.
  586. >
  587.  
  588. Be that as it may, what should my app be *doing* with them when it
  589. sees them?  I have yet to write an application that needed to know
  590. about these events, so why should I bother looking at them.
  591.  
  592. Of course, I *am* passing everyEvent as my event mask, but I got the
  593. impression you weren't talking about that....
  594.  
  595. - -------
  596. Christopher Tate     | Cryptogram #17:
  597. cxt105@psuvm.psu.edu |
  598. CXT105@PSUVM.BITNET  | "NYO XFJ BCFGJ ZFJN MQWJVU EGYZ XQWBSGCJ.  QYT
  599. - ---------------------|  ZOXQ HFMWCJXC NYO QFDC, EYG WJUMFJXC."
  600. Send me the answer!  |                  -- EGFJABWJ H. PYJCU
  601.  
  602. +++++++++++++++++++++++++++
  603.  
  604. From: potts@itl.itd.umich.edu (Paul Potts)
  605. Date: 15 Apr 92 14:14:03 GMT
  606. Organization: Instructional Technology Laboratory, University of Michigan
  607.  
  608. In article <92105.142724CXT105@psuvm.psu.edu> Christopher Tate <CXT105@psuvm.psu.edu> writes:
  609. >In article <22885@goofy.Apple.COM>, REEKES@applelink.apple.com (Jim Reekes)
  610. >says:
  611. >>
  612. >>All applications should be checking for diskInserted events.
  613. >>
  614. >
  615. >Be that as it may, what should my app be *doing* with them when it
  616. >sees them?  I have yet to write an application that needed to know
  617. >about these events, so why should I bother looking at them.
  618.  
  619. If you don't handle them, when your app is frontmost and a user inserts
  620. a disk, nothing will happen. Even after they quit, nothing will happen -
  621. the disk won't have been mounted, and they can't drag it into the trash
  622. to get rid of it; they can hit "Eject," but most users will just be confused.
  623. (At least, this is the way it used to work).
  624.  
  625. You should have a case for diskEvents in
  626. your main event loop; it is also a good idea to add a case for handling
  627. diskEvents to the filter procedures of any modal dialogs you use. If you
  628. do this, then your user can insert disks even while a modal dialog is on
  629. the screen, and still have the system recognize them.
  630.  
  631. Here is how I do it inside a dialog filter procedure:
  632.  
  633. if (GetNextEvent(diskMask, &diskEvent) == TRUE)
  634. {
  635.     if (HiWord(diskEvent.message) != 0) 
  636.     {
  637.         diskEvent.where.h =    ((screenBits.bounds.right -         
  638.                 screenBits.bounds.left)/ 2) - 
  639.                 (304 / 2);
  640.         diskEvent.where.v =     ((screenBits.bounds.bottom - 
  641.                 screenBits.bounds.top)/ 3) 
  642.                 - (104 / 2);
  643.         InitCursor();
  644.         DIResult =DIBadMount(diskEvent.where, 
  645.             diskEvent.message);
  646.     }
  647.  
  648. }    
  649. /* end of if GetNextEvent test for disk events */
  650.  
  651. (Note that this is pretty crude code and uses hard-coded values for
  652. the dialog size).
  653.  
  654. Inside your event loop, you should have a case for a diskEvent.
  655. If the HiWord is not equal to zero, you should call DIBadMount.
  656. You can give it anything you like for the .where field; I put mine
  657. in the middle of the screen. There are probably better ways; this
  658. is pretty quick-and-dirty. If you are in the event loop in a typical
  659. application, you won't need to call InitCursor().
  660.  
  661. If you need an example, look in the Apple Sample Code for something
  662. like SillyBalls. I can't remember where I found the above code, but
  663. it was probably lifted from some Apple sample code.
  664.  
  665.  
  666.  
  667.  
  668. - -- 
  669. Paul Potts - potts@itl.itd.umich.edu
  670. Un damne' descendant sans lampe,/ Au bord d'un gouffre dont l'odeur
  671. Trahit l'humide profondeur,/ D'e'ternels escaliers sans rampe... 
  672.    -Baudelaire on DOS/Windows programming   
  673.  
  674. +++++++++++++++++++++++++++
  675.  
  676. From: Keith_Rollin@taligent.com (Keith Rollin)
  677. Date: 15 Apr 92 21:31:13 GMT
  678. Organization: Taligent
  679.  
  680. In article <92105.142724CXT105@psuvm.psu.edu>, CXT105@psuvm.psu.edu (Christopher
  681. Tate) writes:
  682. > In article <22885@goofy.Apple.COM>, REEKES@applelink.apple.com (Jim Reekes)
  683. > says:
  684. > >
  685. > >All applications should be checking for diskInserted events.
  686. > >
  687. > Be that as it may, what should my app be *doing* with them when it
  688. > sees them?  I have yet to write an application that needed to know
  689. > about these events, so why should I bother looking at them.
  690.  
  691. If you get a disk-inserted event with a result code of noErr, then you don't
  692. need to do anything. However, if the result code is not noErr, then you should
  693. call DIBadMount.
  694.  
  695. (There is a caveat to this. I think the Finder calls DIBadMount only on certain
  696. result codes, not all of them. I don't know what result codes it considers
  697. benign enough to not call DIBadMount.)
  698.  
  699. - --
  700. Keith Rollin
  701. Phantom Programmer
  702. Taligent, Inc.
  703.  
  704. +++++++++++++++++++++++++++
  705.  
  706. Organization: Penn State University
  707. Date: Thursday, 16 Apr 1992 09:14:05 EDT
  708. From: Christopher Tate <CXT105@psuvm.psu.edu>
  709.  
  710. In article <65498@apple.Apple.COM>, Keith_Rollin@taligent.com (Keith Rollin)
  711. says:
  712. >
  713. >[I asked the following:]                                                      r
  714. >>
  715. >> Be that as it may, what should my app be *doing* with them when it
  716. >> sees them?  I have yet to write an application that needed to know
  717. >> about these events, so why should I bother looking at them.
  718. >>
  719. >
  720. >If you get a disk-inserted event with a result code of noErr, then you don't
  721. >need to do anything. However, if the result code is not noErr, then you should
  722. >call DIBadMount.
  723.  
  724. Ah, this explains quite a bit.  I assumed that since "something else" was
  725. taking care of mounting the disks, "something else" would take care of
  726. the initialization prompt, too.
  727.  
  728. And, it seems that *LOTS* of applications fail to do this.  One big, big
  729. problem that we have in the PSU public Mac labs (Mac IIsi's, Sys. 7) is
  730. that people get terminally confused by putting a disk in and watching
  731. nothing happen.  MacWrite II (latest version) "eats" bad disks by not
  732. calling DIBadMount, as does Darkside of the Mac 2.4 (is this fixed in
  733. version 3?).  And so does MacPaint 2.0.
  734.  
  735. At last, I understand why we've been seeing this...  <whew>  And now
  736. I *will* Do the Right Thing and call DIBadMount when appropriate.  Thanks
  737. for the clarifications, everyone.
  738.  
  739. - -------
  740. Christopher Tate        |  "Computer Science has more real-world
  741.                         |   applications than rotisserie baseball."
  742. cxt105@psuvm.psu.edu    |
  743. Bitnet:  CXT105@PSUVM   |       -- Ben Liblit, next-door neighbor
  744.  
  745. ---------------------------
  746.  
  747. From: cconstantine@mr.gov.bc.ca
  748. Subject: THINK C 5.0.2 questions on syntax
  749. Date: 14 Apr 92 19:06:40 GMT
  750. Organization: BC Systems Corporation
  751.  
  752. I have a couple of questions on THINK C 5.02 syntax and procedures.  My first
  753. question has to do with MENU resources.  I'm compiling the first volume of the
  754. Mac Programming Primmer for THINK C to conform to the new 5.02 standard for
  755. some ppl that have requested it sent be sent to them.  Anyway, in most of the
  756. programs where menus are involed, they don't always keep a handle to ALL of the
  757. menus. ie: they will have a handle to the Apple Menu & edit menu, but not the
  758. File Menu or Special Menu (both of which are accessed more than the rest!!! Any
  759. particular reason for this???
  760.  
  761. Question number 2 pertains more to THINK C 5.0.2 syntax.  The MOVE_TO_FRONT
  762. constant in the book is -1L but for "compability reasons" it now has to be
  763. (WindowPtr)-1L, typecasted.  What is the purpose for this when it worked just
  764. fine the other way in C 4.05????????!!!!!!!! This is rather confusing to have
  765. some of these things different when trying to learn C!!!!
  766.  
  767. - -- 
  768. Carl.Constantine@BCSystems.gov.bc.ca
  769. Victoria, British Columbia, Canada
  770.  
  771. +++++++++++++++++++++++++++
  772.  
  773. From: Keith_Rollin@taligent.com (Keith Rollin)
  774. Date: 15 Apr 92 21:28:51 GMT
  775. Organization: Taligent
  776.  
  777. In article <1992Apr14.120640.417@mr.gov.bc.ca>, cconstantine@mr.gov.bc.ca
  778. writes:
  779. > I have a couple of questions on THINK C 5.02 syntax and procedures.  My first
  780. > question has to do with MENU resources.  I'm compiling the first volume of the
  781. > Mac Programming Primmer for THINK C to conform to the new 5.02 standard for
  782. > some ppl that have requested it sent be sent to them.  Anyway, in most of the
  783. > programs where menus are involed, they don't always keep a handle to ALL of
  784. the
  785. > menus. ie: they will have a handle to the Apple Menu & edit menu, but not the
  786. > File Menu or Special Menu (both of which are accessed more than the rest!!!
  787. Any
  788. > particular reason for this???
  789.  
  790. I think the real question is why do those programs keep track of any menu
  791. handles at all, as opposed to just some of them. I _never_ keep track of any
  792. menu handles. I always get them when I need them by calling GetMHandle.
  793.  
  794. - --
  795. Keith Rollin
  796. Phantom Programmer
  797. Taligent, Inc.
  798.  
  799. ---------------------------
  800.  
  801. From: wolf@piquet.cipl.uiowa.edu (Michael J. Wolf)
  802. Subject: How to guarantee the colors I want when my app runs?
  803. Date: 15 Apr 92 21:55:06 GMT
  804. Organization: Cardiovascular Image Processing Lab, U of Iowa
  805.  
  806. I have a color environment.  I have a clut resource and a pltt resource.
  807. I create me CWindows and call SetPalette to my pltt resource.
  808.  
  809. Now, if I start my app first, then go to others which hog colors, and
  810. then return to my app, the colors are set back up correctly when the 
  811. window manager calls ActivatePalette for my windows.
  812.  
  813. BUT, if I start up something first, like ResEdit and open a 256 clut
  814. and it sucks up all the colors, then when I start up my app, it cannot
  815. and will never get the correct colors.
  816.  
  817. Also, I am using 4bit images and a 4bit clut (I do SetHandleSize to resize
  818. the clut to be as large as the display can handle, ie: 8bit is 256
  819. ColorInfo records), I also have a 4bit pltt.  Now, if I am in 8 bit mode
  820. my colors get screwed up as well.  If while in my app, I change to 4bit
  821. mode, the colors are still wrong, but if I start in 4bit mode and have
  822. my correct colors, then go to 8bit mode, my colors are correct.
  823.  
  824. This has gotten me a bit confused as to what might be the problem.
  825.  
  826. I want my app to be system 6.x and 7.x compatible as well as bw & color
  827. compatible.
  828.  
  829. All help is appreciated.
  830.  
  831. M Wolf
  832. wolf@fangio.cipl.uiowa.edu
  833.  
  834.  
  835.  
  836. +++++++++++++++++++++++++++
  837.  
  838. From: k044477@hobbes.kzoo.edu (Jamie R. McCarthy)
  839. Date: 16 Apr 92 15:15:43 GMT
  840. Organization: Kalamazoo College
  841.  
  842. (I changed the followup;  this _doesn't_ belong in comp.lang.c)
  843.  
  844. wolf@piquet.cipl.uiowa.edu (Michael J. Wolf) writes:
  845. >
  846. >I have a color environment.  I have a clut resource and a pltt resource.
  847. >I create me CWindows and call SetPalette to my pltt resource.
  848. >
  849. >BUT, if I start up something first, like ResEdit and open a 256 clut
  850. >and it sucks up all the colors, then when I start up my app, it cannot
  851. >and will never get the correct colors.
  852. >
  853.  
  854. It sounds like you just want to use pmTolerant colors.  If you're
  855. creating the pltt yourself, you'll want to do so with the NewPalette()
  856. call, and specify the usage field as pmTolerant.  Don't use
  857. SetHandleSize() to add entries;  use ResizePalette().
  858. - -- 
  859.  Jamie McCarthy     Internet: k044477@kzoo.edu     AppleLink: j.mccarthy
  860.  Ceci n'est pas une .signature.
  861.  
  862. ---------------------------
  863.  
  864. From: pscott@spam.ua.oz (Paul Scott)
  865. Subject: ThinkPascal
  866. Date: 15 Apr 92 07:32:22 GMT
  867. Organization: Stats Pure & Applied Maths, Uni of Adelaide, Australia
  868.  
  869. I am using ThinkPascal 4.0 with System 6.0.5.  I have three problems associated
  870. with graphics programs.
  871.  
  872. (1) When using the Text Window, sometimes the text does not appear.  This
  873. appears to be an intermittent fault.  Is there a solution?
  874.  
  875. (2) When working with cartesian axes, is there any easy way of reversing the
  876. y-axis and corresponding coordinates, so that coordinates on the screen
  877. correspond to 'real life'?! - ie y-axis up instead of down?
  878.  
  879. (3) I understand there may be a way of rotating 'pictures', although I can find
  880. no mention of this in the manuals.  Can anybody please help?
  881.  
  882. Paul Scott, Department of Pure Mathematics, University of Adelaide, Australia
  883. pscott@spam.ua.oz.au
  884.  
  885. +++++++++++++++++++++++++++
  886.  
  887. From: jbush@magnus.acs.ohio-state.edu (John E Bush)
  888. Date: 16 Apr 92 12:04:33 GMT
  889. Organization: The Ohio State University
  890.  
  891. In article <1355@spam.ua.oz> pscott@spam.ua.oz (Paul Scott) writes:
  892. >I am using ThinkPascal 4.0 with System 6.0.5. I have three problems associated
  893. >with graphics programs.
  894.  
  895. [Stuff Removed]
  896.  
  897. >(2) When working with cartesian axes, is there any easy way of reversing the
  898. >y-axis and corresponding coordinates, so that coordinates on the screen
  899. >correspond to 'real life'?! - ie y-axis up instead of down?
  900. >
  901. [Stuff Removed]
  902.  
  903. All you have to do is take Y max and subtract your value from it.  So, if
  904. Y Max is 200, and you want something plotted 5 pixels from the bottom like
  905. a normal math problem, gave a const value for y_max or something similar and
  906. in your pltting equation say y_max-value.  In the above example, it would
  907. result in the value being plotted at 195.
  908.  
  909. Eric
  910.  
  911. ---------------------------
  912.  
  913. From: rreid@diana.cair.du.edu (ROBIN R. REID)
  914. Subject: Zortech C++
  915. Date: 28 Feb 92 01:05:09 GMT
  916. Organization: University of Denver
  917.  
  918. I'm looking for opinions about the Zortech C++ compiler being
  919. sold by Symantec.  I am very comfortable using C, and feel that
  920. it's time to move forward.  
  921.  
  922. Any help will be appreciated.
  923.  
  924.  
  925.  
  926. - -------------------------
  927.  
  928. From: nagle@netcom.com (John Nagle)
  929. Subject:  Zortech C++
  930. Date: 28 Feb 92 16:45:13 GMT
  931. Organization: Netcom - Online Communication Services  (408 241-9760 guest)
  932.  
  933.  
  934.       Symantek just announced an upgrade.  Mine hasn't come yet, and
  935. I haven't seen any reports of experiences with it.  The old version is
  936. V2.1r2, and you don't want that one.  I suggest waiting a few weeks and
  937. watching for reports on the new release.
  938.  
  939.                     John Nagle
  940.  
  941.  
  942.  
  943. - -------------------------
  944.  
  945. From: knox@monster.umd.edu (Garry Knox)
  946. Subject:  Zortech C++ (MacApp 3.0)
  947. Date: 28 Feb 92 20:21:09 GMT
  948. Organization: University of Maryland (ASDG)
  949.  
  950. In article <0-ph-+fnagle@netcom.com> nagle@netcom.com (John Nagle) writes:
  951. >
  952. >      Symantek just announced an upgrade.  Mine hasn't come yet, and
  953. >I haven't seen any reports of experiences with it.  The old version is
  954. >V2.1r2, and you don't want that one.  I suggest waiting a few weeks and
  955. >watching for reports on the new release.
  956. >
  957. >                    John Nagle
  958.  
  959.   Does anyone know if this upgrade will support MacApp 3.0?
  960.  
  961. -garry
  962.  
  963.  
  964.  
  965. - -------------------------
  966.  
  967. From: cory@enigami.mv.com (Cory Kempf)
  968. Date: Tue, 3 Mar 92 20:30:50 EST
  969. Organization: EnigamI, Inc., Nashua, NH
  970.  
  971. Hi,
  972. I am thinking of dumping ETO in favour of the Zortech compiler.  Thus,
  973. I am looking for oppinions/comments from users of Zortech C++ for the Mac.  
  974. If you have used it, please let me know what you think of it.  If
  975. you have dealt with their tech support, etc, PLEASE let me know what
  976. you think of them.  Are the responsive?  Helpful?  etc.  
  977.  
  978. Please send me your oppinions via E-mail.  If there is interest, 
  979. I will post a summary.
  980.  
  981. Thanks,
  982.  
  983. +C
  984.  
  985.  
  986. - -------------------------------------------------------------
  987. Cory Kempf                    EnigamI, Inc.
  988. cory@enigami.mv.com           ...!decvax!enigami!cory
  989.  
  990. +++++++++++++++++++++++++++
  991.  
  992. From: ksand@apple.com (Kent Sandvik)
  993. Date: 8 Mar 92 01:47:49 GMT
  994. Organization: MacDTS Mongols
  995.  
  996. In article <11584@umd5.umd.edu>, knox@monster.umd.edu (Garry Knox) writes:
  997. > In article <0-ph-+fnagle@netcom.com> nagle@netcom.com (John Nagle) writes:
  998. > >
  999. > >      Symantek just announced an upgrade.  Mine hasn't come yet, and
  1000. > >I haven't seen any reports of experiences with it.  The old version is
  1001. > >V2.1r2, and you don't want that one.  I suggest waiting a few weeks and
  1002. > >watching for reports on the new release.
  1003. > >
  1004. > >                    John Nagle
  1005. >   Does anyone know if this upgrade will support MacApp 3.0?
  1006.  
  1007. What I heard, NO.
  1008.  
  1009. Cheers,
  1010. Kent
  1011.  
  1012. - --
  1013. Kent Sandvik - Apple DTS  - Dynamic Language Evangelist
  1014. ksand@apple.com
  1015. All opinions expressed are my own, and not related to any company or
  1016. organization. 
  1017. Happy, happy, joy, joy!
  1018.  
  1019. +++++++++++++++++++++++++++
  1020.  
  1021. From: cory@enigami.mv.com (Cory Kempf)
  1022. Date: Thu, 19 Mar 92 21:13:20 EST
  1023. Organization: EnigamI, Inc., Nashua, NH
  1024.  
  1025.  
  1026. Short Summary: Zortech C++ is slow, buggy, and doesn't work.  Stick
  1027. with MPW for now.  Maybe useful in the future, but needs work.
  1028.  
  1029. More detailed summary:
  1030.  
  1031. Zortech does not have (or is not willing to admit the results of) any 
  1032. comparative benchmarks between MPW C++ and ZC++.
  1033.  
  1034. Slower than MPW C++ with load/dump
  1035.  
  1036. ZC++ does not work with MacApp 3.0, nor does in come with any class
  1037. library (e.g. TCL).
  1038.  
  1039. ZC++ is a partial implimentation of C++ 2.1.  Some stuff in not implimented
  1040. (iostreams, for example).  C++ 3.0 features such as templates & exceptions
  1041. are not implimented either.
  1042.  
  1043. ZC++ does not come with a debugger.  SADE is the recommended debugger.
  1044. One person commented that ZC++ does not produce .SYM files, so that
  1045. would rule out using SourceBug (I thought that it would also kill
  1046. SADE as well! -- Maybe he was mistaken)
  1047.  
  1048. ZC++ does not include HandleObject support.
  1049.  
  1050. ZC++ Documentation is weak.  Especially w.r.t Mac Interface.
  1051.  
  1052. ZC++ has trouble with non-sample applications (e.g. non-trivial code).
  1053.  
  1054. Symantec's tech support ain't all that up on the Mac version of the
  1055. compiler; one tech support group from all platforms.  They also don't
  1056. return calls.
  1057.  
  1058. And the final, most damning statement:
  1059.  
  1060. "I'm not convinced that it can be used for ANY machintosh native 
  1061. runable code."
  1062.  
  1063. Thanks to all who contributed.
  1064.  
  1065. +C
  1066.  
  1067.  
  1068. - -------------------------------------------------------------
  1069. Cory Kempf                    EnigamI, Inc.
  1070. cory@enigami.mv.com           ...!decvax!enigami!cory
  1071.  
  1072. +++++++++++++++++++++++++++
  1073.  
  1074. From: nagle@netcom.com (John Nagle)
  1075. Date: Sat, 21 Mar 92 06:40:32 GMT
  1076. Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
  1077.  
  1078. cory@enigami.mv.com (Cory Kempf) writes:
  1079. >Short Summary: Zortech C++ is slow, buggy, and doesn't work.  Stick
  1080. >with MPW for now.  Maybe useful in the future, but needs work.
  1081.       
  1082.        According to Symantec support, the new release started shipping
  1083. today to existing users who called in for the free upgrade.
  1084. (If you have the old version, find your serial number (it's on the back of 
  1085. one of the disks) and call Symantec's upgrade number, 617-280-2510.
  1086. Mine hasn't come yet, so I have no idea if it's any good.
  1087.  
  1088.        Kempf is, unfortunately, all too right about the previous release.
  1089.  
  1090.                     John Nagle
  1091.  
  1092. +++++++++++++++++++++++++++
  1093.  
  1094. From: shite@sinkhole.unf.edu (Stephen Hite)
  1095. Date: 22 Mar 92 16:33:12 GMT
  1096. Organization: University of North Florida, Jacksonville
  1097.  
  1098. In article <1w#jk5cnagle@netcom.com> nagle@netcom.com (John Nagle) writes:
  1099. >cory@enigami.mv.com (Cory Kempf) writes:
  1100. >>Short Summary: Zortech C++ is slow, buggy, and doesn't work.  Stick
  1101. >>with MPW for now.  Maybe useful in the future, but needs work.
  1102. >      
  1103. >
  1104. >       Kempf is, unfortunately, all too right about the previous release.
  1105. >
  1106. >                    John Nagle
  1107.  
  1108.  
  1109.    To my knowledge, there's been only one person involved with the 
  1110. Zortech C++ for the MPW platform...Pat Nelson.  You'd think by now that
  1111. Symantec would put a couple of their top Mac people on the project
  1112. and become compatible with MacApp 3.0.  Then again, you would have thought
  1113. that by now Symantec could have produced a Think C++...they really missed
  1114. the boat.
  1115.  
  1116. Steve Hite
  1117. shite@sinkhole.unf.edu
  1118.  
  1119. +++++++++++++++++++++++++++
  1120.  
  1121. From: ts@cup.portal.com (Tim W Smith)
  1122. Date: 21 Mar 92 06:17:58 GMT
  1123. Organization: The Portal System (TM)
  1124.  
  1125. > Symantec's tech support ain't all that up on the Mac version of the
  1126. > compiler; one tech support group from all platforms.  They also don't
  1127. > return calls.
  1128.  
  1129. Oh well, Zortech didn't return calls, either.  When it first came out,
  1130. they sent me an offer to get it at a reduced price.  I called with some
  1131. technical questions, and they promised to FAX me the answers or call
  1132. back, and they never did.
  1133.  
  1134. Maybe Symantec wants to support Zortech customers in the manner in which
  1135. they are accustomed? :-)
  1136.  
  1137.                             Tim Smith
  1138.  
  1139. +++++++++++++++++++++++++++
  1140.  
  1141. From: nagle@netcom.com (John Nagle)
  1142. Date: 23 Mar 92 23:53:08 GMT
  1143. Organization: Netcom - Online Communication Services  (408 241-9760 guest)
  1144.  
  1145. shite@sinkhole.unf.edu (Stephen Hite) writes:
  1146. >   To my knowledge, there's been only one person involved with the 
  1147. >Zortech C++ for the MPW platform...Pat Nelson.  You'd think by now that
  1148. >Symantec would put a couple of their top Mac people on the project
  1149. >and become compatible with MacApp 3.0.  Then again, you would have thought
  1150. >that by now Symantec could have produced a Think C++...they really missed
  1151. >the boat.
  1152.  
  1153.        It's really sad.  I originally purchased Zortech C++ for the Mac
  1154. because I was pleased with their MS-DOS product and needed a compatible
  1155. compiler on the Mac.  I was very disappointed.  I had months of anguish,
  1156. submitted about five bug reports, and finally bought MPW C/C++.
  1157.  
  1158.        The product had such promise.  The global optimizer really does
  1159. the hard optimizations right.  It's just the 680x0 code generator that's 
  1160. broken.  The MS-DOS product never could optimize as much as one would
  1161. like because the Intel CPUs just don't have enough registers.  But on
  1162. the 68000, much more serious optimizing is possible.  In theory, this
  1163. should be a really great compiler.  It just needed serious testing
  1164. before shipment, which it didn't get.
  1165.  
  1166.         Not only that, but since it's a hard compiler, rather than a
  1167. front end for C, an efficient implementation of exceptions is possible.
  1168. With some work, Symantec could leapfrog MPW and bring C++ up to the
  1169. level documented in Strostrup's latest definition of the language.
  1170. C++ with exceptions, and classes that use them properly to protect
  1171. themselves, could provide a much more reliable support structure for
  1172. Mac programs.  This might provide a path out of the general flakeyness
  1173. of Mac programs.
  1174.  
  1175.          But I'm not holding my breath.
  1176.  
  1177.                     John Nagle
  1178.  
  1179. +++++++++++++++++++++++++++
  1180.  
  1181. From: waqar@cs.caltech.edu (Waqar Malik)
  1182. Date: 26 Mar 92 03:22:07 GMT
  1183. Organization: Caltech Computer Science
  1184.  
  1185.  
  1186.     Does any body have the part number for Zortech C++ for Mac.
  1187.     I called but sales person does not seem to know about it.
  1188.  
  1189.     Sorry if it is a FAQ.
  1190.  
  1191. waQar malik
  1192. - -- 
  1193. Waqar Malik                    waqar@vlsi.cs.caltech.edu
  1194.  
  1195. "The brain is a wonderful organ: it starts working the moment you get
  1196.  up in the morning, and does not stop until you get to school."
  1197.  
  1198. +++++++++++++++++++++++++++
  1199.  
  1200. From: Ray.Arachelian@f204.n2603.z1.ieee.org (Ray Arachelian)
  1201. Date: 28 Mar 92 21:44:00 GMT
  1202. Organization: FidoNet node 1:2603/204 - Not Even Odd, Forest Hills NY
  1203.  
  1204. On 03-20-92, CORY@ENIGAMI.MV.COM wrote to ALL:
  1205.  
  1206.  C> Symantec's tech support ain't all that up on the Mac version of the 
  1207.  C> compiler; one tech support group from all platforms.  They also don't 
  1208.  C> return calls. 
  1209.  
  1210. If Zortech C++ for the Mac sucks so badly, why did Symantec bother to buy 
  1211. it, especially when they already own Think C?
  1212.  
  1213.  
  1214.  * Freddie 1.1 * You have been found guilty of commerce with the devil.
  1215.  
  1216. - --  
  1217. =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
  1218.  Ray Arachelian - Internet: Ray.Arachelian@f204.n2603.z1.ieee.org
  1219.  
  1220. +++++++++++++++++++++++++++
  1221.  
  1222. From: nagle@netcom.com (John Nagle)
  1223. Date: Tue, 31 Mar 92 18:04:27 GMT
  1224. Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
  1225.  
  1226.        Any sign of the new Zortech release announced several weeks ago?
  1227. Symantec/Zortech support told me it would ship "tomorrow" over a week ago.
  1228.  
  1229.                     John Nagle
  1230.  
  1231. +++++++++++++++++++++++++++
  1232.  
  1233. From: knox@monster.umd.edu (Garry Knox)
  1234. Date: 31 Mar 92 20:12:36 GMT
  1235. Organization: University of Maryland
  1236.  
  1237. In article <y+hjx8+.nagle@netcom.com> nagle@netcom.com (John Nagle) writes:
  1238. >
  1239. >       Any sign of the new Zortech release announced several weeks ago?
  1240. >Symantec/Zortech support told me it would ship "tomorrow" over a week ago.
  1241. >
  1242. >                    John Nagle
  1243.  
  1244.   Get my copy last friday. Included in the package was a new manual, with 
  1245. Symantec on the cover. I haven't spent too much time with it since it does not
  1246. support MacApp 3.0. They claimed in the release notes that they were working
  1247. with the MacApp team to "determine" the problem... :-/
  1248.  
  1249. - -garry
  1250.  
  1251.  
  1252. +++++++++++++++++++++++++++
  1253.  
  1254. From: jb@lexicon.com (Jim Bailey)
  1255. Organization: Lexicon, Inc., Waltham, MA
  1256. Date: Tue, 31 Mar 1992 23:46:17 GMT
  1257.  
  1258. In article <13265.29D870EF@zeus.ieee.org> Ray.Arachelian@f204.n2603.z1.ieee.org (Ray Arachelian) writes:
  1259.  
  1260.    On 03-20-92, CORY@ENIGAMI.MV.COM wrote to ALL:
  1261.  
  1262.     C> Symantec's tech support ain't all that up on the Mac version of the 
  1263.     C> compiler; one tech support group from all platforms.  They also don't 
  1264.     C> return calls. 
  1265.  
  1266.    If Zortech C++ for the Mac sucks so badly, why did Symantec bother to buy 
  1267.    it, especially when they already own Think C?
  1268.  
  1269. I think they bought Zortech for the MS-DOS, OS/2 compiler, and got the
  1270. MPW thrown in for free.  They probably didn't give the MPW version
  1271. much weight in the decision.  Symantec is much bigger in the MESS-DOS
  1272. world than in the Mac world.  At least they haven't outright killed it
  1273. yet.
  1274.  
  1275. - -- 
  1276. "The Beatles were elevator music in my lifetime 'Yummy Yummy Yummy (I've Got
  1277. Love In My Tummy)' had more impact on me" -- Michael Stipe of R.E.M.
  1278. jb@lexicon.com
  1279.  
  1280. +++++++++++++++++++++++++++
  1281.  
  1282. From: nagle@netcom.com (John Nagle)
  1283. Date: 1 Apr 92 23:07:52 GMT
  1284. Organization: Netcom - Online Communication Services  (408 241-9760 guest)
  1285.  
  1286.  
  1287.         The new release, V2.1, just came.  From the manual, it appears to have
  1288. exactly the same limitations as last year's model.  Still no math
  1289. coprocessor support, no templates, no exceptions, no MacApp 3.0...
  1290. Haven't installed it yet, and probably won't since most of what I do
  1291. slows down by an order of magnitude without inline math support.
  1292.  
  1293.                     John Nagle
  1294.  
  1295. +++++++++++++++++++++++++++
  1296.  
  1297. From: Mike.Alexander@umich.edu (Mike Alexander)
  1298. Date: 4 Apr 92 20:59:48 GMT
  1299. Organization: University of Michigan, ITD-Research Systems
  1300.  
  1301.  
  1302.  
  1303.  
  1304. Mike Alexander              Internet:       Mike.Alexander@um.cc.umich.edu
  1305. University of Michigan      Bitnet:         USERMTA@UMICHUM
  1306. ITD - Research Systems      AppleLink:      UMICH
  1307.                             America Online: MAlexander
  1308.  
  1309. +++++++++++++++++++++++++++
  1310.  
  1311. From: Mike.Alexander@umich.edu (Mike Alexander)
  1312. Date: 4 Apr 92 21:54:39 GMT
  1313. Organization: University of Michigan, ITD-Research Systems
  1314.  
  1315. <Oops, I was using an unfamiliar news reader and lost my text>
  1316.  
  1317. I installed the new version and converted one medium sized program to
  1318. compile
  1319. with it, but probably won't switch over to it regularly. It seemed to
  1320. produce 
  1321. correct code for toolbox calls now, unlike the previous version. Also the
  1322. SYM
  1323. information produced is now compatible with Jaski's Debugger, which is
  1324. important
  1325. to me. However, they still distribute their own version of CIncludes,
  1326. which is
  1327. based on an obsolete version from Apple. Fortunately, most of the files
  1328. are 
  1329. unchanged by Zortech, and it is possible to substitute the current Apple
  1330. ones
  1331. without too much trouble.
  1332.  
  1333.  
  1334. Mike Alexander              Internet:       Mike.Alexander@um.cc.umich.edu
  1335. University of Michigan      Bitnet:         USERMTA@UMICHUM
  1336. ITD - Research Systems      AppleLink:      UMICH
  1337.                             America Online: MAlexander
  1338.  
  1339. +++++++++++++++++++++++++++
  1340.  
  1341. From: wingo@apple.com (Tony Wingo)
  1342. Date: 8 Apr 92 17:13:52 GMT
  1343. Organization: Apple Computer
  1344.  
  1345. In article <13265.29D870EF@zeus.ieee.org>, Ray.Arachelian@f204.n2603.z1.ieee.org (Ray Arachelian) writes:
  1346. > On 03-20-92, CORY@ENIGAMI.MV.COM wrote to ALL:
  1347. >  C> Symantec's tech support ain't all that up on the Mac version of the 
  1348. >  C> compiler; one tech support group from all platforms.  They also don't 
  1349. >  C> return calls. 
  1350. > If Zortech C++ for the Mac sucks so badly, why did Symantec bother to buy 
  1351. > it, especially when they already own Think C?
  1352.  
  1353. Probably because Zortech is a major player in the MSDOS C++ field, and they
  1354. wanted into that market.
  1355.  
  1356. - -tony
  1357.  
  1358. >>usual disclaimer<<
  1359.  
  1360. +++++++++++++++++++++++++++
  1361.  
  1362. From: ksand@apple.com (Kent Sandvik)
  1363. Date: 10 Apr 92 01:32:48 GMT
  1364. Organization: MacDTS Mongols
  1365.  
  1366. In article <JB.92Mar31184617@beryllium.lexicon.com>, jb@lexicon.com (Jim Bailey)
  1367. writes:
  1368. > In article <13265.29D870EF@zeus.ieee.org>
  1369. Ray.Arachelian@f204.n2603.z1.ieee.org (Ray Arachelian) writes:
  1370. >    On 03-20-92, CORY@ENIGAMI.MV.COM wrote to ALL:
  1371. >    If Zortech C++ for the Mac sucks so badly, why did Symantec bother to buy 
  1372. >    it, especially when they already own Think C?
  1373. > I think they bought Zortech for the MS-DOS, OS/2 compiler, and got the
  1374. > MPW thrown in for free.  They probably didn't give the MPW version
  1375. > much weight in the decision.  Symantec is much bigger in the MESS-DOS
  1376. > world than in the Mac world.  At least they haven't outright killed it
  1377. > yet.
  1378.  
  1379. This is just speculation, but why would a company kill a compiler that 
  1380. supposedly will work under both environments, something which is a rare
  1381. thing today? It sounds market-wise silly to kill one of the selling options.
  1382. Remember the tick box wars against Borland and Microsoft...
  1383.  
  1384. Cheers,
  1385. Kent Sandvik
  1386. Dynamic Language Revivalist
  1387.  
  1388. +++++++++++++++++++++++++++
  1389.  
  1390. From: shite@sinkhole.unf.edu (Stephen Hite)
  1391. Date: 15 Apr 92 20:46:58 GMT
  1392. Organization: University of North Florida, Jacksonville
  1393.  
  1394. In article <22809@goofy.Apple.COM> ksand@apple.com (Kent Sandvik) writes:
  1395. >
  1396. >This is just speculation, but why would a company kill a compiler that 
  1397. >supposedly will work under both environments, something which is a rare
  1398. >thing today? It sounds market-wise silly to kill one of the selling options.
  1399. >Remember the tick box wars against Borland and Microsoft...
  1400. >
  1401. >Cheers,
  1402. >Kent Sandvik
  1403. >Dynamic Language Revivalist
  1404.  
  1405.   Well, Kent,  I think it comes down to logistics and time.  The 
  1406. logistics problem is that Walter Bright lives in Seattle, WA and Symantec
  1407. is doing their development in Mass.  It's kinda tough to get inside his
  1408. head over the phone and you know he's not in Mass enough to be very useful
  1409. to others on the project.  The time problem is they've got to get more
  1410. eyes looking at the compiler and linker code to where they don't have to
  1411. rely on Walter as much.  On the positive side, once they regroup (i.e. Mac 
  1412. product supports MacApp 3.0), Symantec could be in a good market 
  1413. position (although certainly not a dominant one in the short term).  
  1414.  
  1415.   Symantec's largest failing is that they should have seen the C++ move 
  1416. coming years ago and done something in-house about it.  As they've just 
  1417. learned, buying other company's products can come with just as many 
  1418. problems and expenses as "inventing it here." 
  1419.  
  1420.  
  1421. Steve Hite
  1422. shite@sinkhole.unf.edu
  1423.  
  1424. ---------------------------
  1425.  
  1426. End of C.S.M.P. Digest
  1427. **********************
  1428.